Skip to content

add json lib #1

Open
Easton97-Jens wants to merge 10 commits intodigitalwave:mainfrom
Easton97-Jens:main
Open

add json lib #1
Easton97-Jens wants to merge 10 commits intodigitalwave:mainfrom
Easton97-Jens:main

Conversation

@Easton97-Jens
Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown
Member

@airween airween left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Beside the comment regarding to glaze, I would suggest to add more information about available parsers. At first, it would be enough hot to install them, which packages are necessary. Eg:

  • libjson-c-dev, libjson-c5 or the current version
  • libjansson-dev, libjansson4 or the current version
  • libcjson-dev, libcjson1 or the current version
  • libjsoncpp-dev, libjsoncpp26 or the current version
  • libsimdjson-dev, libsimdjson33 or the current version
  • libyyjson-dev, libyyjson0
  • libglaze-dev (?)
  • libjsoncons-dev

Comment thread configure.ac
[wantglaze="notset"]
)

if test "$wantglaze" != "no"; then
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't if it's a package error or something else, but after I installed libglaze-dev on my Debian SID test environment, I got this message:

configure: error: glaze/glaze.hpp not found or not compilable with C++. Install glaze headers or disable with --with-glaze=no

Here is what I have:

│││ Name           Version
├┼┼─═══════════════════════
ii  libglaze-dev   7.3.3-1

and the verbose log:

configure:5674: checking for usable glaze/glaze.hpp with C++ compiler
configure:5687: g++ -c -g -O2  conftest.cpp >&5
In file included from /usr/include/glaze/glaze.hpp:35,
                 from conftest.cpp:30:
/usr/include/glaze/base64/base64.hpp: In function 'std::string glz::read_base64(std::string_view)':
/usr/include/glaze/base64/base64.hpp:28:8: error: 'glz::read_base64(std::string_view)::<lambda()>' called in a constant expression
   21 |       static constexpr std::array<int, 256> decode_table = [] {
      |                                                            ~~~~
   22 |          std::array<int, 256> t;
      |          ~~~~~~~~~~~~~~~~~~~~~~~
   23 |          t.fill(-1);
      |          ~~~~~~~~~~~
   24 |          for (int i = 0; i < 64; ++i) {
      |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   25 |             t[base64_chars[i]] = i;
      |             ~~~~~~~~~~~~~~~~~~~~~~~
   26 |          }
      |          ~
   27 |          return t;
      |          ~~~~~~~~~
   28 |       }();
      |       ~^~
/usr/include/glaze/base64/base64.hpp:21:60: note: 'glz::read_base64(std::string_view)::<lambda()>' is not usable as a 'constexpr' function because:
   21 |       static constexpr std::array<int, 256> decode_table = [] {
      |                                                            ^
/usr/include/glaze/base64/base64.hpp:23:16: error: call to non-'constexpr' function 'void std::array<_Tp, _Nm>::fill(const value_type&) [with _Tp = int; long unsigned int _Nm = 256; value_type = int]'
   23 |          t.fill(-1);
      |          ~~~~~~^~~~
In file included from /usr/include/glaze/base64/base64.hpp:6:
/usr/include/c++/15/array:123:7: note: 'void std::array<_Tp, _Nm>::fill(const value_type&) [with _Tp = int; long unsigned int _Nm = 256; value_type = int]' declared here
  123 |       fill(const value_type& __u)
      |       ^~~~
In file included from /usr/include/glaze/beve/header.hpp:13,
                 from /usr/include/glaze/beve.hpp:6,
                 from /usr/include/glaze/glaze.hpp:36:
/usr/include/glaze/core/context.hpp: At global scope:
/usr/include/glaze/core/context.hpp:130:4: error: 'concept' does not name a type; did you mean 'context'?
  130 |    concept is_context = requires(T& ctx) {
      |    ^~~~~~~
      |    context
/usr/include/glaze/core/context.hpp:130:4: note: 'concept' only available with '-std=c++20' or '-fconcepts'
/usr/include/glaze/core/context.hpp:147:4: error: 'concept' does not name a type; did you mean 'context'?
  147 |    concept has_runtime_max_string_length = requires(Ctx& ctx) {
      |    ^~~~~~~
      |    context
/usr/include/glaze/core/context.hpp:147:4: note: 'concept' only available with '-std=c++20' or '-fconcepts'
/usr/include/glaze/core/context.hpp:152:4: error: 'concept' does not name a type; did you mean 'context'?
  152 |    concept has_runtime_max_array_size = requires(Ctx& ctx) {
      |    ^~~~~~~
...

plus so-so much messages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants